<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/6/28
 * Time: 15:31
 */

function Service($service_name)
{
    include_once APP_PATH.'/service/'.$service_name.'Service.class.php';
    $class_name=$service_name.'Service.class.php';
    $class_obj=new $class_name();
    return $class_obj;
    call_user_func(array($class_obj, METHOD));
}
function Mongodb()
{
    include_once APP_PATH.'/db/Mongodb.php';
    $mongo = new MongoPHP(array('host'=>'monitor.hfjy.red','port'=>27017));
    return $mongo;
}